package com.iqiyi.pps.epg.web.timer;

import com.iqiyi.pps.epg.core.rpc.qipu.QipuService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 每3分钟获取需要同步状态的直播频道信息，写入新老奇谱
 * Created by huaizimin on 2015/1/20.
 */
public class ChannelSyncTrigger {
    private static Logger logger = LoggerFactory.getLogger(ChannelSyncTrigger.class);
    @Autowired
    private QipuService qipuService;

    public void task() {
        logger.info("[ChannelSyncTrigger] task");
        qipuService.syncChannelDataList();
        logger.info("[ChannelSyncTrigger] end");
    }
}
